import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import UrlEncoder from '../views/UrlEncoder.vue'
import QrGenerator from '../views/QrGenerator.vue'
import PropertiesConverter from '../views/PropertiesConverter.vue'
import Base64Converter from '../views/Base64Converter.vue'
import RmbConverter from '../views/RmbConverter.vue'
import CrontabGenerator from '../views/CrontabGenerator.vue'
import TextConverter from '../views/TextConverter.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/url-encoder',
    name: 'UrlEncoder',
    component: UrlEncoder
  },
  {
    path: '/qr-generator',
    name: 'QrGenerator',
    component: QrGenerator
  },
  {
    path: '/properties-converter',
    name: 'PropertiesConverter',
    component: PropertiesConverter
  },
  {
    path: '/base64-converter',
    name: 'Base64Converter',
    component: Base64Converter
  },
  {
    path: '/rmb-converter',
    name: 'RmbConverter',
    component: RmbConverter
  },
  {
    path: '/crontab-generator',
    name: 'CrontabGenerator',
    component: CrontabGenerator
  },
  {
    path: '/text-converter',
    name: 'TextConverter',
    component: TextConverter
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router